from pydantic import BaseModel, Field


class NavBarVo(BaseModel):
    """导航栏配置表 ORM 模型"""
    id: int = Field(..., alias="id", description="自增主键")
    img_url: str = Field(..., alias="imgUrl", description="图片地址")
    img_name: str = Field(..., alias="imgName", description="图片名称")
    show_text: str = Field(..., alias="showText", description="显示文案")
    is_delete: int = Field(0, alias="isDelete", description="是否删除(1=已删除,0=正常)")

    class Config:
        orm_mode = True
        allow_population_by_field_name = True
